﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Windows.Forms;

namespace Cashier_Interface
{
    public interface IDataGridViewData
    {
        /// <summary>
        /// 生成DataGridView列
        /// </summary>
        /// <param name="dgv"></param>
        void GenerateGridViewColumns(DataGridView dgv);

        /// <summary>
        /// 查询DataGridView绑定数据
        /// </summary>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        void GetBindingData(int rowindex, int pageindex, int pagesize);

        /// <summary>
        /// 查询数据总记录数
        /// </summary>
        /// <returns></returns>
        long GetBindingDataRecord();

        /// <summary>
        /// 处理Enter键事件
        /// </summary>
        void EnterkeyEventHandler();
    }
}
